//
//  BaseModel.m
//  PropertyMananger
//
//  Created by bh on 17/1/9.
//  Copyright © 2017年 BH. All rights reserved.
//

#import "BaseModel.h"

@implementation BaseModel

- (void)setValue:(id)value forKey:(NSString *)key{
    if ([value isKindOfClass:[NSNumber class]]) {
        [self setValue:[NSString stringWithFormat:@"%@",value] forKey:key];
    }else if ([value isKindOfClass:[NSNull class]]) {
        [self setValue:[NSString stringWithFormat:@"%@",value] forKey:key];
    }else if([value isKindOfClass:NULL]){
        [self setValue:@"" forKey:key];
    }else{
        [super setValue:value forKey:key];
    }
}

- (void)setValue:(id)value forUndefinedKey:(NSString *)key{
    
}

@end
